package com.xiangxiao.rpan.file.service.impl;

import com.xiangxiao.rpan.file.dao.ShortLinkManagerMapper;
import com.xiangxiao.rpan.file.dto.QueryShortDto;
import com.xiangxiao.rpan.file.entity.ShortLink;
import com.xiangxiao.rpan.file.service.ShortLinkManagerService;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/11/27 15:03
 */
@Slf4j
@Service
public class ShortLinkManagerServiceImpl implements ShortLinkManagerService {
  @Resource
  private ShortLinkManagerMapper shortLinkManagerMapper;
  @Override
  public int queryAllLinkCount(QueryShortDto dto) {
    return shortLinkManagerMapper.queryAllLinkCount(dto);
  }

  @Override
  public List<ShortLink> queryLinByPagination(QueryShortDto dto) {
    return shortLinkManagerMapper.queryLinByPagination(dto);
  }
}
